package com.thinkingcoder.tccache.server;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.util.AttributeKey;

public class TcChannelHolder extends ChannelInboundHandlerAdapter {
    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {
        AttributeKey<String> key = AttributeKey.valueOf("name");
        ctx.channel().attr(key).set("Thinking Coder");
    }
}
